<?php /* Smarty version 2.6.18, created on 2008-06-18 12:46:21
         compiled from ajax_users.interface.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', '_', 'ajax_users.interface.tpl', 3, false),array('function', 'tinyMCE', 'ajax_users.interface.tpl', 39, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'ajax.header.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<div id="options">
		<input type="button" value="<?php echo translate(array('t' => 'Save'), $this);?>
"     id="user_save" class="save">
		<input type="button" value="<?php echo translate(array('t' => 'Cancel'), $this);?>
"   id="user_cancel" class="cancel">
		<input type="button" value="<?php echo translate(array('t' => 'Eliminar'), $this);?>
" id="user_delete" class="delete">
	</div>

	<h1><img src="../public/icons/16x16/apps/users.png"/><?php echo translate(array('t' => 'Usuario'), $this);?>
 #<?php echo $this->_tpl_vars['user']->id; ?>
</h1> 	

	<div id="icontent">
		<div id="blocks">&nbsp;</div>
		<div id="icontent-lang">
			<div id="user_working"></div>
			<form id="user_form" action="index.php?c=ajax_users&a=user_save&id=<?php echo $this->_tpl_vars['user']->id; ?>
" method="post">

			<b><?php echo translate(array('t' => 'Nombre'), $this);?>
</b>
			<input type="text" value="<?php echo $this->_tpl_vars['user']->name; ?>
" name="name">

			<b><?php echo translate(array('t' => 'Apellido'), $this);?>
</b>
			<input type="text" value="<?php echo $this->_tpl_vars['user']->lastname; ?>
" name="lastname">

			<b><?php echo translate(array('t' => 'Email'), $this);?>
</b>
			<input type="text" value="<?php echo $this->_tpl_vars['user']->mail; ?>
" name="email">

			<b><?php echo translate(array('t' => "Contrase&ntilde;a"), $this);?>
</b>
			<input type="text" value="" name="password">
			
			<b><?php echo translate(array('t' => 'Profiles'), $this);?>
</b>	
			<select name="profile">
				<?php $_from = ($this->_tpl_vars['profiles']); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['prf']):
?>
				<option value="<?php echo $this->_tpl_vars['prf']->id; ?>
" <?php if ($this->_tpl_vars['user']->profile_id == $this->_tpl_vars['prf']->id): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['prf']->name; ?>
</option>
				<?php endforeach; endif; unset($_from); ?>
			</select>
			</form>
		</div>
	</div>
</div>
	
<?php echo smarty_function_tinyMCE(array('width' => '350','height' => '300'), $this);?>

<script type="text/javascript">
var ITEM_ID   = '<?php echo $this->_tpl_vars['user']->id; ?>
';
user_init();
</script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'ajax.footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>